import request from '../utils/request'

export function create(notice){
    return new request({
        url: '/notice',
        method: 'POST',
        data: notice
    })
}

export function search(queryParam,page,size){
    return new request({
        url: '/notice/search',
        method: 'GET',
        params: {
        ...queryParam,
          
        }
    })
}

export function findAllDto(pageable){
    return new request({
        url: '/notice',
        method: 'GET',
        params: pageable
    })
}

export function findOne(id){
    return new request({
        url: '/notice/'+id,
        method: 'get',
    })
}

export function deleteNotice(id){
    return new request({
        url: '/notice/'+id,
        method: 'DELETE',
    })
}
